package com.gljx.web.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gljx.web.Entity.Remuneration;
import org.springframework.stereotype.Component;

@Component
public interface RemunerationMapper {
    int deleteByPrimaryKey(String fid);

    int insert(Remuneration record);

    int insertSelective(Remuneration record);

    Remuneration selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(Remuneration record);

    int updateByPrimaryKey(Remuneration record);

    /**
     * 查找薪酬项目信息
     * @param remuneration
     * @return
     */
    List<Remuneration> selectRemunerationList(@Param("fid")String fcompanyid);

    /**
     * 根据名称查询薪酬项目信息
     * @param map
     * @return
     */
    List<Remuneration> selectRemunerationByFname(Map<String, String> map);

    /**
     * 查找最大编码
     * @return
     */
    String selectFnumber(String companyId);
}